<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="page" uri="/WEB-INF/paging.tld"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+
            request.getServerPort()+path+"/";
    out.print(basePath);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <base href="<%=basePath%>">
    <title>Title</title>
    <style type="text/css">
        td{border: solid 1px;}
    </style>
</head>
<body>
<table boder="1">
    <tr><th>编号</th><th>名称</th><th>价格</th></tr>
  <c:forEach items="${dto.tList}" var="goodtype">
    <tr><td>${goodtype.gtid}</td><td>${goodtype.gtname}</td><td>${goodtype.gtdesc}</td></tr>
  </c:forEach>
    <page:paging href="goodtype/getAllByPage"
                 itemCount="${pageInfo.itemCount}"
                 currPage="${pageInfo.currPage}"
                 pageSize="${pageInfo.pageSize}"
    />

   <tr><a href="/page/arrive/back/goodtype/add">添加</a></tr>
</table>
</body>
</html>
